import request from '@/utils/request'

// 查询zhang列表
export function listZhang(query) {
  return request({
    url: '/system/zhang/list',
    method: 'get',
    params: query
  })
}

// 查询zhang详细
export function getZhang(id) {
  return request({
    url: '/system/zhang/' + id,
    method: 'get'
  })
}

// 新增zhang
export function addZhang(data) {
  return request({
    url: '/system/zhang',
    method: 'post',
    data: data
  })
}

// 修改zhang
export function updateZhang(data) {
  return request({
    url: '/system/zhang',
    method: 'put',
    data: data
  })
}

// 删除zhang
export function delZhang(id) {
  return request({
    url: '/system/zhang/' + id,
    method: 'delete'
  })
}


// 新增凭据zhang
export function addCreatZhang(data) {
  return request({
    url: '/system/zhang/creat',
    method: 'post',
    data: data,
  })
}


